package com.sq.partner.manager.mybatis.model;

import java.math.BigDecimal;
import java.net.URLEncoder;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.util.Date;

import com.sq.partner.manager.util.EncryptUtil;



/**
 * 投保单表
 * SQ
 */
public class FacadeAppForm { 
	private String stagNo; //暂存单号
	private String appNo; //投保单号
	/** 加密暂存单号*/
	private String stag_No; //暂存单号
	/** 加密投保单号*/
	private String app_No; //投保单号	
	/** 加密保单号*/
	private String pol_No; //保单号	
	private String polNo; //保单号
	private String trip; //投保内容
	private String insuPlanNo; //投保方案号
    private String insuPlanName; //投保方案
	private String insuPlanNoDscp; //投保方案描述	
	private Date effDate; //保险起期
	private String effHours; //保险起期小时
	private Date termDate; //保险止期
	private String termHours; //保险止期小时
	private Long dayCount; //保险天数
	private Long insuredCount; //被保险人总数
	private BigDecimal totPremamt; //总保费
	private Long unirPp; //份数
	private String status; //状态
	private String listName; //清单名称
	private String inputEmp; //业务员
	private Date inputDate; //录入日期
	private Timestamp creatTime; //创建时间
	private Timestamp updateTime; //修改时间
	private String deptNo; //出单机构
	private String partnerNo; //投保单位
	private Timestamp polSubDate; //保单提交日期
	private BigDecimal insAmount; //总保额
	private String partneSaleNo; //投保单位子机构
	private String tradAppNo;//交易系统投保单号
	private String realSignFlag;//即时投保字段
	private String documentSerialNo;//单证流水号
	private String eUrl;//电子保单下载地址	
    private String isEpolicy;//是否电子保单
	private BigDecimal singlePremium;//单个保费	
	private BigDecimal singleAmount;//单个保额
	//总保额 string类型
	private String stringInsAmount;	//保险起期  string类型
	private String stringEffDate;	//保险止期 string类型
	private String stringTermDate;	//总保费 string类型
	private String stringTotPremamt;    
    private BigDecimal premNotax;   //不含税保费
    private BigDecimal premVat;     //增值税额    
    //不含税保费 和 增值税额 的 string类型
    private String stringPremNotax;
    private String stringPremVat;    
    private String isSameSociety; // 送签社与投保人是否同一人
    private String sendSignSociety; // 送签社名称    
    private BigDecimal serviceCharge;    
    private String payAccountNumber;// 缴费账户号
    private String payAccountName;// 缴费账户名
    private String payBankAccount;// 开户行
    private Date borrowTime;// 借款时间
    private Date repayTime;// 还款时间
    private String loanBankSitename;// 贷款银行网点名称
    private String bankLinkerName;// 银行联系人
    private String bankLinkerPhone;// 银行联系电话
    private String repaidType;// 还款方式
    private String loanWay;// 保额确定方式
    private String stringBorrowTime;
    private String stringRepayTime;
    
    //报文返回错误信息
    private String errInfo;
    private String resultCode;
    //试算返回投被保人信息是否黑名单
    private String warnInfo;
    
	public String getWarnInfo() {
		return warnInfo;
	}
	public void setWarnInfo(String warnInfo) {
		this.warnInfo = warnInfo;
	}
	public String getStag_No() {
		return stag_No;
	}
	public void setStag_No(String stag_No) {
		this.stag_No = EncryptUtil.encrypt(stag_No);
	}
	public String getApp_No() {
		return app_No;
	}
	public void setApp_No(String app_No) {
		this.app_No = EncryptUtil.encrypt(app_No);
	}
	/**
	 * 设置加密的地址栏访问app_no
	 * @param app_No
	 */
	public void setUrlApp_No(String app_No) {
		this.app_No =URLEncoder.encode( EncryptUtil.encrypt(app_No));
	}
	public String getPol_No() {
		return pol_No;
	}
	public void setPol_No(String pol_No) {
		this.pol_No = EncryptUtil.encrypt(pol_No);
	}
    public String getStagNo() {
        return stagNo;
    }
    public void setStagNo(String stagNo) {
        this.stagNo = stagNo;
    }
    public String getAppNo() {
        return appNo;
    }
    public void setAppNo(String appNo) {
        this.appNo = appNo;
    }
    public String getPolNo() {
        return polNo;
    }
    public void setPolNo(String polNo) {
        this.polNo = polNo;
    }
    public String getTrip() {
        return trip;
    }
    public void setTrip(String trip) {
        this.trip = trip;
    }
    public String getInsuPlanNo() {
        return insuPlanNo;
    }
    public void setInsuPlanNo(String insuPlanNo) {
        this.insuPlanNo = insuPlanNo;
    }
    public String getInsuPlanNoDscp() {
        return insuPlanNoDscp;
    }
    public void setInsuPlanNoDscp(String insuPlanNoDscp) {
        this.insuPlanNoDscp = insuPlanNoDscp;
    }
    public Date getEffDate() {
        return effDate;
    }
    public void setEffDate(Date effDate) {
        this.effDate = effDate;
    }
    public String getEffHours() {
        return effHours;
    }
    public void setEffHours(String effHours) {
        this.effHours = effHours;
    }
    public Date getTermDate() {
        return termDate;
    }
    public void setTermDate(Date termDate) {
        this.termDate = termDate;
    }
    public String getTermHours() {
        return termHours;
    }
    public void setTermHours(String termHours) {
        this.termHours = termHours;
    }
    public Long getDayCount() {
        return dayCount;
    }
    public void setDayCount(Long dayCount) {
        this.dayCount = dayCount;
    }
    public Long getInsuredCount() {
        return insuredCount;
    }
    public void setInsuredCount(Long insuredCount) {
        this.insuredCount = insuredCount;
    }
    public BigDecimal getTotPremamt() {
        return totPremamt;
    }
    public void setTotPremamt(BigDecimal totPremamt) {
        DecimalFormat decimalFormat = new DecimalFormat("#.00");
        if (totPremamt != null) {
            this.totPremamt = new BigDecimal(decimalFormat.format(totPremamt));
        } else {
            this.totPremamt = totPremamt;
        }
    }
    public Long getUnirPp() {
        return unirPp;
    }
    public void setUnirPp(Long unirPp) {
        this.unirPp = unirPp;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getListName() {
        return listName;
    }
    public void setListName(String listName) {
        this.listName = listName;
    }
    public String getInputEmp() {
        return inputEmp;
    }
    public void setInputEmp(String inputEmp) {
        this.inputEmp = inputEmp;
    }
    public Date getInputDate() {
        return inputDate;
    }
    public void setInputDate(Date inputDate) {
        this.inputDate = inputDate;
    }
    public Timestamp getCreatTime() {
        return creatTime;
    }
    public void setCreatTime(Timestamp creatTime) {
        this.creatTime = creatTime;
    }
    public Timestamp getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
    public String getDeptNo() {
        return deptNo;
    }
    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }
    public String getPartnerNo() {
        return partnerNo;
    }
    public void setPartnerNo(String partnerNo) {
        this.partnerNo = partnerNo;
    }
    public Timestamp getPolSubDate() {
        return polSubDate;
    }
    public void setPolSubDate(Timestamp polSubDate) {
        this.polSubDate = polSubDate;
    }
    public BigDecimal getInsAmount() {
        return insAmount;
    }
    public void setInsAmount(BigDecimal insAmount) {
        this.insAmount = insAmount;
    }
    public String getPartneSaleNo() {
        return partneSaleNo;
    }
    public void setPartneSaleNo(String partneSaleNo) {
        this.partneSaleNo = partneSaleNo;
    }
    public String getTradAppNo() {
        return tradAppNo;
    }
    public void setTradAppNo(String tradAppNo) {
        this.tradAppNo = tradAppNo;
    }
    public String getRealSignFlag() {
        return realSignFlag;
    }
    public void setRealSignFlag(String realSignFlag) {
        this.realSignFlag = realSignFlag;
    }
    public String getDocumentSerialNo() {
        return documentSerialNo;
    }
    public void setDocumentSerialNo(String documentSerialNo) {
        this.documentSerialNo = documentSerialNo;
    }
    public String geteUrl() {
        return eUrl;
    }
    public void seteUrl(String eUrl) {
        this.eUrl = eUrl;
    }
    public BigDecimal getSinglePremium() {
        return singlePremium;
    }
    public void setSinglePremium(BigDecimal singlePremium) {
        this.singlePremium = singlePremium;
    }
    public BigDecimal getSingleAmount() {
        return singleAmount;
    }
    public void setSingleAmount(BigDecimal singleAmount) {
        this.singleAmount = singleAmount;
    }
    public String getStringInsAmount() {
        return stringInsAmount;
    }
    public void setStringInsAmount(String stringInsAmount) {
        this.stringInsAmount = stringInsAmount;
    }
    public String getStringEffDate() {
        return stringEffDate;
    }
    public void setStringEffDate(String stringEffDate) {
        this.stringEffDate = stringEffDate;
    }
    public String getStringTermDate() {
        return stringTermDate;
    }
    public void setStringTermDate(String stringTermDate) {
        this.stringTermDate = stringTermDate;
    }
    public String getStringTotPremamt() {
        return stringTotPremamt;
    }
    public void setStringTotPremamt(String stringTotPremamt) {
        this.stringTotPremamt = stringTotPremamt;
    }
    public BigDecimal getPremNotax() {
        return premNotax;
    }
    public void setPremNotax(BigDecimal premNotax) {
        DecimalFormat decimalFormat = new DecimalFormat("#.00");
        if (premNotax != null) {
            this.premNotax = new BigDecimal(decimalFormat.format(premNotax));
        } else {
            this.premNotax = premNotax;
        }
    }
    public BigDecimal getPremVat() {
        return premVat;
    }
    public void setPremVat(BigDecimal premVat) {
        DecimalFormat decimalFormat = new DecimalFormat("#.00");
        if (premVat != null) {
            this.premVat = new BigDecimal(decimalFormat.format(premVat));
        } else {
            this.premVat = premVat;
        }
    }
    public String getStringPremNotax() {
        return stringPremNotax;
    }
    public void setStringPremNotax(String stringPremNotax) {
        this.stringPremNotax = stringPremNotax;
    }
    public String getStringPremVat() {
        return stringPremVat;
    }
    public void setStringPremVat(String stringPremVat) {
        this.stringPremVat = stringPremVat;
    }
    public String getIsSameSociety() {
        return isSameSociety;
    }
    public void setIsSameSociety(String isSameSociety) {
        this.isSameSociety = isSameSociety;
    }
    public String getSendSignSociety() {
        return sendSignSociety;
    }
    public void setSendSignSociety(String sendSignSociety) {
        this.sendSignSociety = sendSignSociety;
    }
    public BigDecimal getServiceCharge() {
        return serviceCharge;
    }
    public void setServiceCharge(BigDecimal serviceCharge) {
        this.serviceCharge = serviceCharge;
    }
    public String getPayAccountNumber() {
        return payAccountNumber;
    }
    public void setPayAccountNumber(String payAccountNumber) {
        this.payAccountNumber = payAccountNumber;
    }
    public String getPayAccountName() {
        return payAccountName;
    }
    public void setPayAccountName(String payAccountName) {
        this.payAccountName = payAccountName;
    }
    public String getPayBankAccount() {
        return payBankAccount;
    }
    public void setPayBankAccount(String payBankAccount) {
        this.payBankAccount = payBankAccount;
    }
    public Date getBorrowTime() {
        return borrowTime;
    }
    public void setBorrowTime(Date borrowTime) {
        this.borrowTime = borrowTime;
    }
    public Date getRepayTime() {
        return repayTime;
    }
    public void setRepayTime(Date repayTime) {
        this.repayTime = repayTime;
    }
    public String getLoanBankSitename() {
        return loanBankSitename;
    }
    public void setLoanBankSitename(String loanBankSitename) {
        this.loanBankSitename = loanBankSitename;
    }
    public String getBankLinkerName() {
        return bankLinkerName;
    }
    public void setBankLinkerName(String bankLinkerName) {
        this.bankLinkerName = bankLinkerName;
    }
    public String getBankLinkerPhone() {
        return bankLinkerPhone;
    }
    public void setBankLinkerPhone(String bankLinkerPhone) {
        this.bankLinkerPhone = bankLinkerPhone;
    }
    public String getRepaidType() {
        return repaidType;
    }
    public void setRepaidType(String repaidType) {
        this.repaidType = repaidType;
    }
    public String getLoanWay() {
        return loanWay;
    }
    public void setLoanWay(String loanWay) {
        this.loanWay = loanWay;
    }
    public String getStringBorrowTime() {
        return stringBorrowTime;
    }
    public void setStringBorrowTime(String stringBorrowTime) {
        this.stringBorrowTime = stringBorrowTime;
    }
    public String getStringRepayTime() {
        return stringRepayTime;
    }
    public void setStringRepayTime(String stringRepayTime) {
        this.stringRepayTime = stringRepayTime;
    }
    public String getErrInfo() {
        return errInfo;
    }
    public void setErrInfo(String errInfo) {
        this.errInfo = errInfo;
    }
    public String getResultCode() {
        return resultCode;
    }
    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }
    public String getInsuPlanName() {
        return insuPlanName;
    }
    public void setInsuPlanName(String insuPlanName) {
        this.insuPlanName = insuPlanName;
    }
    public String getIsEpolicy() {
        return isEpolicy;
    }
    public void setIsEpolicy(String isEpolicy) {
        this.isEpolicy = isEpolicy;
    }
	
}